﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Liang.DataBase.Model.Entity
{
    /// <summary>
    /// 组织机构
    /// </summary>
    [Serializable] 
    public class sys_organ : DbBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid organId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 机构电话
        /// </summary>
        public string phone { get; set; }

        /// <summary>
        /// 机构地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 机构类型
        /// </summary>
        public Guid basicdataId { get; set; }

        public virtual sys_basicdata basicdata { get; set; }

        /// <summary>
        /// 一个机构包含多个用户
        /// </summary>
        public virtual ICollection<sys_user> users { get; set; }
    }
}
